package com.example.cf.grouplist.utils;

/**
 * Created by cf on 2016/8/3.
 */

public class MaoPao {
    public static void main(String args[]) {
        int[] arr = {123, 213, 323, 4, 56, 33};
        for (int i = 0; i < arr.length; i++) {
            for (int j = i; j < arr.length; j++) {
                if (arr[i] < arr[j]) {
                    arr[i] = arr[i] + arr[j];
                    arr[j] = arr[i] - arr[j];
                    arr[i] = arr[i] - arr[j];
                }
            }
        }
        for(int i=0;i<arr.length;i++){
            System.out.print(arr[i]);
        }
    }
}
